# coding=UTF-8
#  激活 跨站点请求伪造 保护
CSRF_ENABLED = True
# CSRF 激活的时候才需要，它是用来建立一个加密的令牌
SECRET_KEY = 'yIoMg912'

OPENID_PROVIDERS=[
    {'name':'Google','url':'https://www.google.com/accounts/o8/id'},
    {'name':'Yahoo','url':'https://me.yahoo.com'},
    {'name':'AOL','url':'http://openid.aol.com/<username>'},
    {'name':'Flickr','url':'http://www.flickr.com/<username>'},
    {'name':'MyOpenID','url':'https://www.myopenid.com'}
]
import os
basedir = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')